import request from '@/utils/request'

// 查询投资者适当性列表
export function listFundInvestorAppropriate(query) {
  return request({
    url: '/appropriate/fundInvestorAppropriate/list',
    method: 'get',
    params: query
  })
}

// 查询投资者适当性详细
export function getFundInvestorAppropriate(id) {
  return request({
    url: '/appropriate/fundInvestorAppropriate/' + id,
    method: 'get'
  })
}

// 保存投资者适当性
export function saveFundInvestorAppropriate(data) {
  return request({
    url: '/appropriate/fundInvestorAppropriate/save',
    method: 'post',
    data: data
  })
}

export function checkInvestor(fundId, investId) {
  return request({
    url: '/appropriate/fundInvestorAppropriate/checkInvestor/' + fundId + '/' + investId,
    method: 'get'
  })
}

// 删除投资者适当性
export function delFundInvestorAppropriate(id) {
  return request({
    url: '/appropriate/fundInvestorAppropriate/' + id,
    method: 'delete'
  })
}

// 导出投资者适当性
export function exportFundInvestorAppropriate(query) {
  return request({
    url: '/appropriate/fundInvestorAppropriate/export',
    method: 'get',
    params: query
  })
}
